class ListHandbookModel {
  List<ListHandbookItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  ListHandbookModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  ListHandbookModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => ListHandbookItem.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class ListHandbookItem {
  String? content;
  String? createTime;
  int? id;
  String? imageUrl;
  int? sort;
  String? title;

  ListHandbookItem({
    this.content,
    this.createTime,
    this.id,
    this.imageUrl,
    this.sort,
    this.title,
  });

  ListHandbookItem.fromJson(Map<String, dynamic> json) {
    content = json["content"];
    createTime = json["createTime"];
    id = json["id"];
    imageUrl = json["imageUrl"];
    sort = json["sort"];
    title = json["title"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["content"] = content;
    _data["createTime"] = createTime;
    _data["id"] = id;
    _data["imageUrl"] = imageUrl;
    _data["sort"] = sort;
    _data["title"] = title;
    return _data;
  }
}
